<!--
 * @Author: JPeng 872639397@qq.com
 * @Date: 2022-06-01 15:10:03
 * @LastEditors: JPeng 872639397@qq.com
 * @LastEditTime: 2022-06-01 15:12:12
 * @FilePath: \review-review-review\复习！！！\一些其它练习 日期\6.1.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #a {
            width: 100px;
            height: 100px;
            background-color: blue;
        }
    </style>
</head>

<body>
    <!-- 样式不影响 但是获取节点时只能获取到从上到下第一个 -->
    <div id="a">
        345345345345
    </div>
    <div id="a">
        123123123
    </div>

    <script>
        let b = document.getElementById("a");
        console.log(b);
    </script>
</body>

</html>